@use "@/assets/styles/mixin";

.engineering-manager {
  @include mixin.flex-column;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #fff;
  box-shadow: 4px 5px 16px 0 rgba(0, 0, 0, 0.04);
  border-radius: 8px;

  .filter-container {
    @include mixin.flex-center(space-between);
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
    background-color: #F6F8FA;

    &-select {
      font-size: 14px;
      color: #4E5969;
      line-height: 22px;

      :deep(.el-select__wrapper) {
        width: 256px;
        min-height: 32px;
        margin-left: 16px;
      }
    }

    &-date {
      @include mixin.flex-align;

      :deep(.el-select) {
        width: 130px;
        height: 32px;
      }

      :deep(.el-date-editor) {
        width: 300px;
        height: 32px;
      }
    }

    &-buttons {

    }
  }

  .table-container {
    @include mixin.flex-column;
    position: relative;
    flex: 1;
    overflow: auto;

    &-filter {
      @include mixin.flex-between;
      width: 100%;
      padding: 9px 11px;
      box-sizing: border-box;
      border: 1px solid #E1E6ED;
      border-bottom: 0;

      :deep(.search-input) {
        .el-input__wrapper {
          box-shadow: none;
          border: 1px solid #dcdfe6;
          border-radius: 0 4px 4px 0;
        }
      }

      .search-container {
        :deep(.el-input) {
          width: 213px;
          margin-right: 12px;
        }
      }
    }

    &-schedule {
      @include mixin.flex-align;
    }

    :deep(.el-empty) {
      @include mixin.position-center;
    }

    .client-name {
      font-size: 14px;
      color: #007dff;
      line-height: 24px;
      text-decoration: underline;
      cursor: pointer;
    }
  }


  :deep(.el-table) {
    flex: 1;
    overflow: auto;

    .even-row td {
      background-color: #fff !important;
      font-size: 14px;
      color: #606266;
    }

    .odd-row td {
      background-color: #F5F7FA !important;
      font-size: 14px;
      color: #606266;
    }
  }

  :deep(.el-table--border .el-table__cell) {
    border-right: 0;
  }

  :deep(.el-progress-bar__outer) {
    height: 20px !important;
  }
}


.client-del-dialog {
  :deep(.el-dialog) {
    @include mixin.flex-column;
    max-height: 80vh;
    overflow-y: hidden;
  }

  :deep(.el-dialog__body) {
    @include mixin.flex-center(center, center);
    flex-direction: column;
  }

  .dialog-footer {
    text-align: center;
  }

  .client-del-name {
    @include mixin.flex-inline-flex;
    width: 200px;
    height: 60px;
    font-weight: 700;
    font-size: 18px;
    color: #3D3D3D;
    line-height: 26px;
    border: 1px solid #DCDFE6;
  }

  .client-del-tip {
    margin: 24px auto 43px;
    font-size: 14px;
    color: #3D3D3D;
    line-height: 20px;
  }
}

.user-info {
  padding: 10px;
  box-sizing: border-box;
  font-size: 12px;
  color: #86909C;
  line-height: 20px;

  &-item {
    @include mixin.flex-align;

    & + .user-info-item {
      margin-top: 5px;
    }

    &__name {
      font-weight: bold;
    }
  }
}


//TODO:后续封装状态Tag组件
.status-tag {
  @include mixin.flex-inline-flex;
  padding: 0 5px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid #ffffff;
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;

  &-info {
    background-color: #dcdfe6;
    color: #606266;
  }

  &-danger {
    background-color: #ffc7c7;
    color: #ff3333;
  }

  &-primary {
    background-color: #d9edff;
    color: #409eff;
  }

  &-success {
    background-color: #e3f9e9;
    color: #14c85c;
  }
}

.payment-plan {
  color: #007dff;
  line-height: 24px;
  text-decoration: underline;
  cursor: pointer;
}

.red-color {
  color: red;
}

.table-operate {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  button {
    margin-left: 0 !important;
    padding-left: 0 !important;
    color: #409EFF;
    font-size: 14px;
    margin-bottom: 8px;
    min-width: 52px;
    justify-content: start;
    text-align: left;
    span{
      min-width: 52px;
      display: block;
    }
  }
}
.delete-dialog{
  :deep(.el-dialog)  {
    margin-top: 0 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 4px 25px 0px rgba(4,19,74,0.3);
    border-radius: 10px 10px 10px 10px;
    padding: 40px 30px;
    .el-dialog__title{
      font-size: 18px;
      font-weight: 600;
    }
    .el-dialog__body{
      text-align: center!important;
    }
    .el-dialog__footer{
      margin-top: 20px!important;
      .el-button{
        width: 92px;
        height: 36px;
      }
    }
  }
}
:deep(.el-form-item){
  align-items: center!important;
}

:focus-visible{
  outline: none!important;
}